#ifndef MAINW_H
#define MAINW_H
#include<QTcpSocket>
#include <QMainWindow>
#include "qtserialport.h"
#include<QStringList>
#include <QFile>
namespace Ui {
    class MainW;
}
class MainW : public QMainWindow{
    Q_OBJECT
public:
    MainW(QWidget *parent = 0);
    ~MainW();
protected:
    void changeEvent(QEvent *e);
private:
    QtSerialPort *port;
    Ui::MainW *ui;
    QStringList list;
    QTcpSocket *fd;
    QFile *file;
private slots:
    void on_pushButton_6_clicked();
    void on_pushButton_7_clicked();
    void on_pushButton_5_clicked();
    void showData();
    void  handelConnected();
    void  handleRead();
};

#endif // MAINW_H
